package com.scut.graduation.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.scut.graduation.entity.TitleStu;
import com.scut.graduation.service.TitleStuService;

/**
 * (TitleStu)表控制层
 *
 * @author makejava
 * @since 2022-05-24 17:36:08
 */
@RestController
@RequestMapping("titleStu")
public class TitleStuController {
    /**
     * 服务对象
     */
    @Resource
    private TitleStuService titleStuService;

    /**
     * 通过主键查询单条数据
     *
     * @param id
     *            主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TitleStu selectOne(Integer id) {
        return this.titleStuService.queryById(id);
    }

}